#define _CRT_SECURE_NO_WARNINGS 1 
#include<iostream>
#include<vector>

#include <algorithm>
#include <string>
using namespace std;
class Solution {
public:
    static bool cmp(int x, int y)
    {
        string sx = to_string(x);
        string sy = to_string(y);

        string A = sx;
        A += sy;
        string B = sy;
        B += sx;

        return A < B;
    }
    string PrintMinNumber(vector<int> numbers)
    {
        string res;
        if (numbers.size() == 0)
        {
            return "";
        }
        sort(numbers.begin(), numbers.end(), cmp);
        for (auto i = numbers.begin(); i < numbers.end(); i++)
        {
            res += to_string(*i);
        }
        return res;
    }
};
void main()
{

}